package com.qqt.csr.im.vo.resp;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.qqt.csr.im.dto.MsgAccountDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * im房间
 */
@Getter
@Setter
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@JsonIgnoreProperties(ignoreUnknown = true)
@Schema(name = "RoomRespVO", description = "房间列表")
public class RoomRespVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 8665369092711146793L;

    /**
     * 主键
     */
    @Schema(description="主键")
    private String id;

    @Schema(description="查询请求中用户账号")
    private MsgAccountDTO member;

    @Schema(description="其他成员账号")
    private List<MsgAccountDTO> otherMemberList;

    /**
     * 最新的会话id
     */
    @Schema(description="最新的会话id")
    private String lastConversationId;

    /**
     * 最近会话状态，0：结束，1：正常
     */
    @Schema(description="最近会话状态，0：结束，1：正常")
    private Integer lastConversationState;

    /**
     * 最近会话时间
     */
    @Schema(description="最近会话时间")
    private Date lastConversationDate;

    /**
     * 房间名
     */
    @Schema(description="房间名")
    private String name;

    @Schema(description="房间扩展参数")
    private String roomExt;
}
